/**
 * Created by zhuyufeng on 2015/5/11.
 */
define('home',function(){
	    return home=avalon.define({
		    $id:"home",


/*******		    填写信息        ************/

		    apiID:'',//接口ID

		    //		    请求域名称：
		    apiURL:[{
			    toggle:true,
			    URL:'api.tansunyun.cn',
			    value:'https://api.tansuyun.cn/?i='
		    },{
			    toggle:false,
			    URL:'dev.api.tansunyun.cn',
			    value:'https:/dev./api.tansuyun.cn/?i='
		    },{
			    toggle:false,
			    URL:'test.api.tansunyun.cn',
			    value:'https://api.tansuyun.cn/?i='
		    },{
			    toggle:false,
			    URL:'demo.api.tansunyun.cn',
			    value:'https://demo.api.tansuyun.cn/?i='
		    }],


/**********      	显示信息          ********/
		    Title:'',
		    version:'',
		    Memo:'',
//		    请求参数
		    Request:{
			    "":{
				    ZN:'',
				    ParamType:'',
				    Memo:'',
				    Must:'',
				    Min:'',
				    Max:'',
				    Prim:''
			    }
		    },
//		    json示例
		    demoStr:'',
//		    返回参数
		    Response:{
			    "":{
				    ZN:'',
				    ParamType:'',
				    Memo:'',
				    Must:'',
				    Min:'',
				    Max:''
			    }
		    },


//		    判断是否选中单选框
		    IsChecked:function(x){
			       for(var i = 0; i < 4; i++){
					        home.apiURL[i].toggle=false;
			       }
			       home.apiURL[x].toggle=true;
		    }
	    })
});